.class public Les/kd;
.super Les/od;
.source "BGMRender.java"


# instance fields
.field private final d:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

.field private e:I


# direct methods
.method public constructor <init>(Lcom/esfile/screen/recorder/videos/edit/player/c;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Les/od;-><init>(Lcom/esfile/screen/recorder/videos/edit/player/c;)V

    const/4 p1, 0x1

    .line 2
    iput p1, p0, Les/kd;->e:I

    .line 3
    new-instance p1, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    invoke-direct {p1}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;-><init>()V

    iput-object p1, p0, Les/kd;->d:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    .line 4
    new-instance v0, Les/kd$a;

    invoke-direct {v0, p0}, Les/kd$a;-><init>(Les/kd;)V

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->a(Les/jb$d;)V

    .line 5
    iget-object p1, p0, Les/od;->a:Lcom/esfile/screen/recorder/videos/edit/player/c;

    new-instance v0, Les/kd$b;

    invoke-direct {v0, p0}, Les/kd$b;-><init>(Les/kd;)V

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/videos/edit/player/c$r;)V

    .line 6
    iget-object p1, p0, Les/od;->a:Lcom/esfile/screen/recorder/videos/edit/player/c;

    new-instance v0, Les/kd$c;

    invoke-direct {v0, p0}, Les/kd$c;-><init>(Les/kd;)V

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/a$c;)V

    .line 7
    iget-object p1, p0, Les/od;->a:Lcom/esfile/screen/recorder/videos/edit/player/c;

    new-instance v0, Les/kd$d;

    invoke-direct {v0, p0}, Les/kd$d;-><init>(Les/kd;)V

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/a$i;)V

    return-void
.end method

.method static synthetic a(Les/kd;I)I
    .locals 0

    .line 2
    iput p1, p0, Les/kd;->e:I

    return p1
.end method

.method static synthetic a(Les/kd;)Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;
    .locals 0

    .line 1
    iget-object p0, p0, Les/kd;->d:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    return-object p0
.end method

.method static synthetic b(Les/kd;)I
    .locals 0

    .line 1
    iget p0, p0, Les/kd;->e:I

    return p0
.end method

.method private c()V
    .locals 4

    .line 1
    iget-boolean v0, p0, Les/od;->c:Z

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Les/od;->b:Les/cd;

    iget-object v1, v0, Les/cd;->d:Les/cd$i;

    if-nez v1, :cond_1

    .line 3
    iget-object v0, p0, Les/kd;->d:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->c()V

    .line 4
    iget-object v0, p0, Les/od;->a:Lcom/esfile/screen/recorder/videos/edit/player/c;

    const/high16 v1, 0x3f800000    # 1.0f

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setVolume(F)V

    .line 5
    iget-object v0, p0, Les/kd;->d:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->a(Ljava/util/List;)V

    goto :goto_1

    .line 6
    :cond_1
    iget-object v2, v1, Les/cd$i;->a:Ljava/util/List;

    if-nez v2, :cond_2

    .line 7
    iget-object v0, p0, Les/kd;->d:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->c()V

    .line 8
    iget-object v0, p0, Les/od;->a:Lcom/esfile/screen/recorder/videos/edit/player/c;

    iget v2, v1, Les/cd$i;->b:F

    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setVolume(F)V

    goto :goto_0

    .line 9
    :cond_2
    iget-object v2, p0, Les/kd;->d:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->a(Les/cd;)V

    .line 10
    iget-object v0, p0, Les/od;->a:Lcom/esfile/screen/recorder/videos/edit/player/c;

    iget v2, v1, Les/cd$i;->b:F

    const/high16 v3, 0x40000000    # 2.0f

    div-float/2addr v2, v3

    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setVolume(F)V

    .line 11
    :goto_0
    iget-object v0, p0, Les/kd;->d:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    iget-object v1, v1, Les/cd$i;->a:Ljava/util/List;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->a(Ljava/util/List;)V

    :goto_1
    return-void
.end method


# virtual methods
.method protected a()V
    .locals 1

    .line 4
    iget-object v0, p0, Les/kd;->d:Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditBGMPlayer;->c()V

    return-void
.end method

.method protected a(Les/cd;)V
    .locals 0

    .line 3
    invoke-direct {p0}, Les/kd;->c()V

    return-void
.end method
